package com.soar.tbox.protocol;

import com.soar.tbox.ActionListener;
import com.soar.tbox.CommandStorage;
import com.soar.tbox.DisplayHandler;
import com.soar.tbox.Messenger;
import com.soar.tbox.bean.Command;
import com.soar.tbox.util.LogUtil;

public class Protocol0201 implements Protocol {
	/**
	 * 指令名. T-BOX获取配置
	 */
	private static final String NAME = "0201";

	public Protocol0201() {
	}

	@Override
	public void handle() {
		Command reqCommand = CommandStorage.getCommand(NAME);
		try {
			Messenger messenger = new Messenger();
			DisplayHandler.show("发送获取配置指令\n");
			Command respCommand = messenger.send(reqCommand, true);
			DisplayHandler.show("得到配置信息\n");
		} catch (Exception e) {
			LogUtil.error("", e);
			e.printStackTrace();
		}
	}
}
